Repository navigation
AD1: the dashboard on Workers and Supabase - #2
Merged
Merged
Conversation
The template in apps/web on Next.js 16.3.8, built by @opennextjs/cloudflare into one Worker with Static Assets. Vercel Postgres becomes a Supabase project's Postgres reached through the HYPERDRIVE binding — a postgres client per request (lib/sql.ts) under upstream's Drizzle queries (lib/db.ts), the schema in lib/schema.ts with .enableRLS() — rendered into wrangler.jsonc from the wiring document the infra/terraform/cloudflare-hyperdrive root publishes over the infra/terraform/supabase project. The products table, row-level security, the template's ten products (its /api/seed route, removed) and the session key (64 hex characters each database generates into app_private.secrets) are packages/db migrations applied by infra/db-migrate before the Worker deploys, each with its drizzle-kit twin. Auth.js resolves its config per request: the key from lib/auth-secret.ts (AUTH_SECRET wins), GitHub only once AUTH_GITHUB_ID and AUTH_GITHUB_SECRET — optional Orun secrets, inlined at build — are both set; until then the dashboard serves signed-out and /login says how to connect GitHub. middleware.ts is proxy.ts, on the Node.js runtime so it can read the key; Vercel Analytics is removed; images are unoptimised. tests/web (the client, the queries, the key, Auth.js's real handlers reading sessions under it, providers, the login page, the health check, the wrangler config) and tests/db (the manifest, the twins, the seed and the key, row-level security, on PGlite). typecheck, lint, test and build are green; the Worker is 2.0 MiB gzipped. Co-Authored-By: Claude <noreply@anthropic.com> Orun-Task: AD-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The template in apps/web on Next.js 16.3.8, built by @opennextjs/cloudflare into one Worker with Static Assets. Vercel Postgres becomes a Supabase project's Postgres reached through the HYPERDRIVE binding — a postgres client per request (lib/sql.ts) under upstream's Drizzle queries (lib/db.ts), the schema in lib/schema.ts with .enableRLS() — rendered into wrangler.jsonc from the wiring document the infra/terraform/cloudflare-hyperdrive root publishes over the infra/terraform/supabase project. The products table, row-level security, the template's ten products (its /api/seed route, removed) and the session key (64 hex characters each database generates into app_private.secrets) are packages/db migrations applied by infra/db-migrate before the Worker deploys, each with its drizzle-kit twin. Auth.js resolves its config per request: the key from lib/auth-secret.ts (AUTH_SECRET wins), GitHub only once AUTH_GITHUB_ID and AUTH_GITHUB_SECRET — optional Orun secrets, inlined at build — are both set; until then the dashboard serves signed-out and /login says how to connect GitHub. middleware.ts is proxy.ts, on the Node.js runtime so it can read the key; Vercel Analytics is removed; images are unoptimised. tests/web (the client, the queries, the key, Auth.js's real handlers reading sessions under it, providers, the login page, the health check, the wrangler config) and tests/db (the manifest, the twins, the seed and the key, row-level security, on PGlite). typecheck, lint, test and build are green; the Worker is 2.0 MiB gzipped.
🤖 Generated with Claude Code